package com.magist.core.exception;

/**
 * 业务异常对象。
 *
 * @author liwei
 */
public class NoAuthException extends RuntimeException {

    private static final long serialVersionUID = 5151669876695986575L;

    private Integer code = 201;

    public NoAuthException() {
        super();
    }

    public NoAuthException(String message) {
        super(message);
    }

    public NoAuthException(String message, Throwable cause) {
        super(message, cause);
    }

    public NoAuthException(Throwable cause) {
        super(cause);
    }

    public NoAuthException(Integer code, String message) {
        super(message);
        this.code = code;
    }

    public NoAuthException(Integer code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }

    public int getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

}
